Managing VectorScripts
VectorScripts, like any other VectorWorks resource, can be edited, moved, copied, renamed, or deleted. VectorScripts also have the added ability of being encrypted to prevent editing.
For information on the VectorScript Editor, see The VectorScript Editor. The VectorScript Language Guide is available in the help system, and as a PDF in [VectorWorks]\VWHelp\Additional Documentation.
Editing VectorScripts
To edit a VectorScript:
1.
Select Window > Palettes > Resource Browser.
The Resource Browser opens.
2.
Select the script, and then select Edit from the Resources menu.
The VectorScript Editor dialog box opens.
3.
When a script editing session is complete, click OK to save changes, or click Cancel to discard script changes.
Alternatively, VectorScripts can be edited directly from the script palette by Option-double-clicking the script name in the palette (Alt-double-click on Windows). The VectorScript Editor opens and the script can be edited.
Renaming VectorScripts
To rename a VectorScript:
1.
Select Window > Palettes > Resource Browser.
The Resource Browser opens.
2.
The Assign Name dialog box opens.
3.
4.
Click OK.
Duplicating VectorScripts
To duplicate a VectorScript:
1.
Select Window > Palettes > Resource Browser.
The Resource Browser opens.
2.
The Assign Name dialog box opens.
3.
The duplicate script is created in the same palette as the original script.
Deleting VectorScripts
To delete a VectorScript:
1.
Select Window > Palettes > Resource Browser.
The Resource Browser opens.
2.
Select the script to be deleted, and select Delete from the Resources menu.
3.
When prompted, click OK to delete the script.
Importing VectorScripts
To import a script from another VectorWorks file:
1.
Select Window > Palettes > Resource Browser.
The Resource Browser opens.
2.
Locate the file containing the script. Select the script to be imported, and then select Import from the Resources menu. (Alternatively, drag the VectorScript resource into the desired VectorWorks file.)
The script is imported into the active script palette. If no palette is active, select the destination for the imported script, when prompted.
Encrypting VectorScripts
A script can be encrypted and locked to prevent editing.
To encrypt a VectorScript:
1.
Select Tools > Scripts > Encrypt VectorScript.
The Choose VectorScript File dialog box opens.
2.
3.
Click Open.
The Save Encrypted VectorScript Code Document dialog box opens.
4.
5.
Click Save.
The script is saved in an encrypted format.

Using Scripts : Managing VectorScripts

Nemetschek NA
Phone: 410.290.5114
Fax: 410.290.8050